var apps = new Vue({
    el:'#login',
    data:{
        username:'',
        password:''
    },
    created:function () {
    },
    methods: {
        loginSubmit:function() {
            let data = {
                username:this.username,
                password:this.password
            }
            try {
                proString(data);
                let request = requestMethod('POST',data);
                fetch('login',request)
                    .then(requestHandle)
                    .then(res => {

                    }).catch(requestError)
            }catch (e) {
                console.log(e);
                layer.msg(e);b
            }
        }
    }

})